<template>
	<view class="container">
		<navbar :title="title"></navbar>
		<view class="wrap">
			<uv-parse :content="content"></uv-parse>
		</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				title:'',
				activityId:'',
				content:'',
			};
		},
		onLoad(option) {
			this.title = option.title ? option.title : '活动详情';
			this.activityId = option.id ? option.id : '';
			this.getDetail()
		},
		methods:{
			//获取活动详情
			getDetail(){
				app.globalRequest({
					api:app.getApi().home.detailSlider,
					data:{
						id:this.activityId
					}
				}).then(res=>{
					if(res.code == 0){
						this.content = res.data.content;
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrap{
		padding:24rpx 24rpx 50rpx;
	}

</style>
